From 15ab234bf9d52ebf509c12d15bcd2c736d9af4c9 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 26 May 1993 20:33:32 +0000 Subject: [PATCH] (x_set_cursor_type): If arg not recognized, use box cursor. --- src/xfns.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/xfns.c b/src/xfns.c index 1d08900079a..b073b9161c2 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -758,11 +758,18 @@ x_set_cursor_type (f, arg, oldval) { if (EQ (arg, Qbar)) FRAME_DESIRED_CURSOR (f) = bar_cursor; - else if (EQ (arg, Qbox)) - FRAME_DESIRED_CURSOR (f) = filled_box_cursor; + else +#if 0 + if (EQ (arg, Qbox)) +#endif + FRAME_DESIRED_CURSOR (f) = filled_box_cursor; + /* Error messages commented out because people have trouble fixing + .Xdefaults with Emacs, when it has something bad in it. */ +#if 0 else error ("the `cursor-type' frame parameter should be either `bar' or `box'"); +#endif /* Make sure the cursor gets redrawn. This is overkill, but how often do people change cursor types? */ -- 2.30.2